@extends('admin.index.index')
@section('content')
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default bk-bg-white">
                <div class="panel-heading bk-bg-white">
                    <h6><i class="fa fa-table"></i><span class="break"></span>分类列表</h6>
                    <div class="panel-actions">
                        <a href="#" class="btn-minimize"><i class="fa fa-caret-up"></i></a>
                        <a href="#" class="btn-close"><i class="fa fa-times"></i></a>
                    </div>
                </div>
                <div class="panel-body">
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered bootstrap-datatable datatable">
                            <thead>
                            <tr>
                                <th>分类ID</th>
                                <th>分类名称</th>
                                <th>标题</th>
                                <th>点击量</th>
                                <th colspan="3">操  作</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($data as $key=>$val)
                            <tr>
                                <td>{{$val->cate_id}}</td>
                                <td>{{$val->_cate_name}}</td>
                                <td>{{$val->cate_title}}</td>
                                <td>{{$val->cate_view}}</td>
                                <td>
                                    <a class="btn btn-success" href="table.html#">
                                        <i class="fa fa-search-plus ">添加</i>
                                    </a>
                                    <a class="btn btn-info" href="{{url('/admin/category/'.$val->cate_id.'/edit')}}">
                                        <i class="fa fa-edit ">修改</i>
                                    </a>
                                    <a class="btn btn-danger" href="table.html#">
                                        <i class="fa fa-trash-o ">删除</i>

                                    </a>
                                </td>
                            </tr>
                            @endforeach
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
@stop